﻿using System.ServiceProcess;

namespace Yz.WinService.Hangfire
{
    internal static class Program
    {
        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        private static void Main()
        {
            AutofacBuilder.Init();
            var srv1 = AutofacBuilder.GetFromFac<YzHfService>();
            ServiceBase.Run(srv1);
        }
    }
}
